package com.framework.web.restful.util;


import com.framework.web.restful.doamin.MessageDomain;

public class MessageUtil {
	/**
	 * 设置消息
	 * @param code
	 * @param arg
	 * @return
	 */
	public static MessageDomain createMsg(int code,String[] arg) {
		MessageDomain msg = new MessageDomain();
		msg.setCode(code);
		msg.setArgs(arg);
		return msg;
	}

	/**
	 * 设置消息
	 * @param code
	 * @return
	 */
	public static MessageDomain createMsg(int code) {
		MessageDomain msg = new MessageDomain();
		msg.setCode(code);
		return msg;
	}
}
